package BaseClass;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.swing.JTable;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;

import table.GenericTableModel;

public abstract class BaseControl<T extends BaseEntity> implements
		TableModelListener {

	public List<T> Objects = new ArrayList<T>();
	public Map<String, T> Maps = new HashMap<String, T>();
	public GenericTableModel<T> JTableModel;
	public JTable table;
	
	public abstract void Action(String act);

	public abstract void add();

	public abstract void delete();

	public abstract void update();
	
}
